package com.wei.chatroom.model;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @projectName: chatroom
 * @package: com.wei.chatroom.model
 * @className: FriendMapper
 * @author: weiJiang
 * @description: friend的数据库接口
 * @date: 2025/9/22 下午3:02
 * @version: 1.0
 */
@Mapper
public interface FriendMapper {

    /**
     * @param userId:待查用户
     * @return List<Friend>
     * @author weiJiang
     * @description 前端请求不带userid，而这些带userid，从哪儿来?
     * 根据当前登录会话获取即可
     * @date 2025/9/22 下午3:05
     */
    List<Friend> selectFriendList(Integer userId);
}
